package com.sayimo.maker.mall.goods.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.mall.goods.dao.ShoppingCartNormsValueInterfacelDao;
import com.sayimo.maker.mall.goods.vo.ShoppingCartNormsValue;



/**
 * @Project: schoolmallapi
 * @ClassName: AreaInterfaceImplDao
 * @Description: 区
 * @Author: 曹频辉
 * @Date: 日期：2015年12月24日 时间：上午10:47
 * @Version 1.0.0
 */
@Repository(value = "shoppingCartNormsValueInterfaceImplDao")
public class ShoppingCartNormsValueInterfaceImplDao extends AbstractMybatisBaseDao<ShoppingCartNormsValue> implements
		ShoppingCartNormsValueInterfacelDao {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.sayimo.school.mall.module.admin.dao.ShoppingCartNormsValueInterfacelDao
	 * #insertShoppingCartNormsValue(com.sayimo.school.mall.module.admin.model.
	 * ShoppingCartNormsValue)
	 */
	public int insertShoppingCartNormsValue(ShoppingCartNormsValue shoppingCartNormsValue) throws DaoException {
		return this.mybatisInterfaceBaseDao.insert(
				"com.sayimo.maker.mall.goods.dao.ShoppingCartNormsValueInterfacelDao.insertShoppingCartNormsValue", shoppingCartNormsValue);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.sayimo.school.mall.module.admin.dao.ShoppingCartNormsValueInterfacelDao
	 * #deleteShoppingCartByCartId(java.lang.Integer[])
	 */
	public int batchDeleteShoppingCartByCartIds(List<Integer> ids) throws DaoException {
		return this.mybatisInterfaceBaseDao.delete(
				"com.sayimo.maker.mall.goods.dao.ShoppingCartNormsValueInterfacelDao.batchDeleteShoppingCartByCartIds", ids);
	}

	@Override
	public ShoppingCartNormsValue queryShoppingCartByCartId(Map<String, Object> paramMap) throws DaoException {
		return mybatisInterfaceBaseDao.get("com.sayimo.maker.mall.goods.dao.ShoppingCartNormsValueInterfacelDao.queryShoppingCartByCartId",paramMap);
	}

	@Override
	public int deleteShoppingCartByCartId(Integer cartId) throws DaoException {
		
		return this.mybatisInterfaceBaseDao.delete(
				"com.sayimo.maker.mall.goods.dao.ShoppingCartNormsValueInterfacelDao.batchDeleteShoppingCartByCartId", cartId);
	}

}
